﻿using System.ComponentModel.DataAnnotations;
using System.Web;
using System.Web.Mvc;
using System.Collections;
using System.Collections.Generic;
using System.Data;
namespace ITXHWEB.Models
{ 
    public class WBBSTModel : ITXModel
    {
        public WBBSTModel()
        {
            IsERKReady = false;
            IsPDCReady = false;
            IsABPReady = false;
            IsTPReady = false;
            IsGEBNRReady = false;
            TP = "0";
            MACHINEID = "";
            PCS = 0;
            ERVER = 0;
            QMTR = 0;
            GEBNR = "";
            ABPAUF = "";
            INFO = "";
            NEWTP = "0000";
            FOLGE = 0;
            WHPCS = new Dictionary<string, string>();
        }
        public WBBSTModel(WBBSTModel _MABF)
        {
            IsERKReady = false;
            IsPDCReady = false;
            IsABPReady = false;
            IsTPReady = false;
            IsGEBNRReady = false;
            MACHINEID = _MABF.MACHINEID;
            PCS = 0;
            QMTR = 0;
            TP = "0000";
            GEBNR = "";
            ABPAUF = "";
            ERVER = 0;
            NEWUSER = _MABF.NEWUSER;
            INFO = "";
            NEWTP = "0000";
            FOLGE = 0;
            WHPCS = new Dictionary<string, string>();
        }
        public WBFKOPFModel CERK;

        [Display(Name = "销售单")] 
        [StringLength(11)]
        public string VKPAUF { get; set; }
        [Display(Name = "生产单")]
        [StringLength(11)]
        public string ABPAUF { get; set; }
        [Display(Name = "发货单")]
        [StringLength(8)]
        //[Remote("CheckVVS", "Account")]
        public string LIEFSCH { get; set; }
        [Display(Name = "布卷号")]
        [StringLength(12)]
        public string WBBSTKNR
        {
            get;
            set;
        }
        [Display(Name = "新批")]
        [StringLength(4)]
        public string NEWTP
        {
            get;
            set;
        }
        [Display(Name = "序号")] 
        public int FOLGE
        {
            get;
            set;
        }
        [Display(Name = "分批")]
        [StringLength(4)]
        public string TP
        {
            get;
            set;
        }
        [Display(Name = "布车")]
        [StringLength(8)]
        public string GEBNR
        {
            get;
            set;
        }
        [Display(Name = "小卷号")]
        [StringLength(4)]
        public string PACKNR
        {
            get;
            set;
        }
        [Display(Name = "至库位")]
        [StringLength(12)]
        public string WHP
        {
            get;
            set;
        }
        [Display(Name = "库")]
        [StringLength(2)]
        public string LO
        {
            get;
            set;
        }
        [Display(Name = "单号")]
        [StringLength(9)]
        public string WBBAUFLFD { get; set; }

        [Display(Name = "区")]
        [StringLength(2)]
        public string LB { get; set; }

        [Display(Name = "位")]
        [StringLength(8)]
        public string LP { get; set; }

        [Display(Name = "原库")]
        [StringLength(2)]
        public string SLO { get; set; }

        [Display(Name = "区")]
        [StringLength(2)]
        public string SLB { get; set; }
        [Display(Name = "卷数")]
        public int PCS { get; set; }
        [Display(Name = "MTR")]
        public double QMTR { get; set; }
        [Display(Name = "YD")]
        public double QYD { get; set; }
        [Display(Name = "目标仓库")]
        public bool IsWHReady { get; set; }
        [Display(Name = "生产单")]
        public bool IsABPReady { get; set; }
    
        [Display(Name = "分批")]
        public bool IsTPReady { get; set; }
        [Display(Name = "布车")]
        public bool IsGEBNRReady { get; set; }
        [Display(Name = "开始采集")]
        public bool IsPDCReady { get; set; }
        public bool IsStaffReady { get; set; }
        
        [Display(Name = "品种")] 
        public string ART { get; set; }
        [Display(Name = "VAR")]
        public string VAR { get; set; }
        [Display(Name = "色号")]
        public string FARBE { get; set; }
        [Display(Name = "WAKZ")]
        public string WAKZ { get; set; }
        [Display(Name = "信息")]
        public string INFO { get; set; }
        [Display(Name = "机台")]
        [Required(ErrorMessage = "必须输入机台")]
        
       
        public string MACHINEID { get; set; }
        public Dictionary<string, string> WHPCS;
        [Display(Name = "验布版本")]
        public int ERVER { get; set; }
        [Display(Name = "质检批次")]
        public bool IsERKReady { get; set; }
        public string RWKRS { get; set; }
        public string RWLFD { get; set; }
        public string RWPOS { get; set; }
    }
}
